package com.heima.controller;

import com.heima.pojo.dto.LoginDto;
import com.heima.pojo.vo.LoginUserVo;
import com.heima.service.UserService;
import com.heima.utils.AliOSSUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@RestController
public class LoginController {

    @Autowired
    private UserService userService;


    //登录功能
    @PostMapping("/api/user-service/user/login")
    public LoginUserVo login(@RequestBody LoginDto dto){
       return userService.login(dto);
    }

}
